<template>
  <div class="detailbanner">
    <van-swipe class="my-swipe bottom_shadow" indicator-color="white">
      <van-swipe-item v-for="(item) in datas" :key="item.id">
        <img :src="item.img" alt @load="loadimg" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  name: "DetailBanner",
  props: {
    datas: {
      type: Array
    }
  },
  methods:{
    loadimg(){
      this.$bus.$emit('loadimg')
      
    }
  }
};
</script>

<style lang="less" scoped>
img {
  display: block;
  width: 85%;
  margin: 0 auto;
}
</style>